package cate.game.train.spice.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBTrain;
import cate.game.role.bag.spice.Spice;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "英雄穿星格の 返回")
public class SpiceOnResp implements MsgOutput {

    @NoteField(value = "英雄ID", detail = "哪一个英雄穿上了星格")
    public String heroUid;

    @NoteField(value = "星格信息", detail = "穿上的星格信息")
    public Spice spice;

    @NoteField(value = "部位", detail = "穿的部位")
    public byte pos;

    public SpiceOnResp() {}

    public SpiceOnResp(Spice spice, String heroUid, byte pos){
        this.spice = spice;
        this.heroUid = heroUid;
        this.pos = pos;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBTrain.HERO_SPICE_ON_RESP;
    }
}
